JBoss Community Archive (Read Only)

Savara

Composing Scenarios

Scenarios, like any other model, can benefit from reuse.

This section shows how scenarios can be composed, to allow common "sub" scenarios to be reused as part of high level scenarios. The benefit of this approach is the maintenance of scenarios, where a common sequence of messages exchanges between the same set of roles, is relevant to many use cases. When it becomes necessary to make a change to this common scenario, it only needs to be performed in one location to be applicable to all use cases.

The following is a scenario related to performing the credit check:

images/author/download/attachments/19693819/ScenarioCompositionSub.png

This can then be used within a higher level version of the SuccessfulPurchase scenario:

images/author/download/attachments/19693819/ScenarioCompositionMain.png

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 09:35:47 UTC, last content change 2012-02-03 22:03:45 UTC.